<?php

/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2016/3/28
 * Time: 14:36
 */
class Domain_SharePrizeRecord{
  /**
   * 领券红包
   */
  public function getCoupon($phone,$prizeid){
    $Model_SharePrizeRecord=new Model_SharePrizeRecord();
    return $Model_SharePrizeRecord->getCoupon($phone,$prizeid);
  }

  /**
   * 检查是否今天领取红包
   */
  public function checkIsGetCoupon($phone){
    $Model_SharePrizeRecord=new Model_SharePrizeRecord();
    $coupon= $Model_SharePrizeRecord->checkIsGetCoupon($phone);
    return $coupon['count'];
  }

  /**
   * 获取今天中奖次数
   */
  public function getPrizeRecord($prizeId){
    $Model_SharePrizeRecord=new Model_SharePrizeRecord();
    $prize= $Model_SharePrizeRecord->getPrizeRecord($prizeId);
    return $prize['count'];
  }

}